﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="WUCTinKhuyenMai.ascx.cs" Inherits="FDeal.WUC.WUCTinKhuyenMai" %>
<asp:GridView ID="gvTinKM" runat="server" AllowPaging="True" 
    AutoGenerateColumns="False" BackColor="#CCCCFF" DataKeyNames="IDDEAL" 
    onrowcancelingedit="gvTinKM_RowCancelingEdit" 
    onrowdeleting="gvTinKM_RowDeleting" onrowediting="gvTinKM_RowEditing" 
    onrowupdating="gvTinKM_RowUpdating" PageSize="4" Width="651px">
    <Columns>
        <asp:TemplateField HeaderText="Tiêu Đề">
            <EditItemTemplate>
                <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("TIEUDE") %>' 
                    Width="80px"></asp:TextBox>
            </EditItemTemplate>
            <ItemTemplate>
                <asp:Label ID="Label1" runat="server" Text='<%# Bind("TIEUDE") %>'></asp:Label>
            </ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField HeaderText="Loại Khuyến Mãi">
            <EditItemTemplate>
                <asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("LOAIDEAL") %>' 
                    Width="70px"></asp:TextBox>
            </EditItemTemplate>
            <ItemTemplate>
                <asp:Label ID="Label2" runat="server" Text='<%# Bind("LOAIDEAL") %>'></asp:Label>
            </ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField HeaderText="Hình Ảnh">
            <EditItemTemplate>
                <asp:TextBox ID="TextBox3" runat="server" Visible="False"></asp:TextBox>
            </EditItemTemplate>
            <ItemTemplate>
                <asp:Image ID="Image1" runat="server" />
            </ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField HeaderText="Thông Tin">
            <EditItemTemplate>
                <asp:TextBox ID="TextBox4" runat="server" Text='<%# Bind("TOMTATDEAL") %>' 
                    TextMode="MultiLine" Width="139px"></asp:TextBox>
            </EditItemTemplate>
            <ItemTemplate>
                <asp:Label ID="Label3" runat="server" Text='<%# Bind("TOMTATDEAL") %>'></asp:Label>
            </ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField HeaderText="Giá Gốc">
            <EditItemTemplate>
                <asp:TextBox ID="TextBox5" runat="server" Text='<%# Bind("GIAGOC") %>' 
                    Width="60px"></asp:TextBox>
            </EditItemTemplate>
            <ItemTemplate>
                <asp:Label ID="Label4" runat="server" Text='<%# Bind("GIAGOC") %>'></asp:Label>
            </ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField HeaderText="Giá Bán">
            <EditItemTemplate>
                <asp:TextBox ID="TextBox6" runat="server" Text='<%# Bind("GIACONLAI") %>' 
                    Width="60px"></asp:TextBox>
            </EditItemTemplate>
            <ItemTemplate>
                <asp:Label ID="Label5" runat="server" Text='<%# Bind("GIACONLAI") %>'></asp:Label>
            </ItemTemplate>
        </asp:TemplateField>
        <asp:CommandField ButtonType="Image" CancelImageUrl="~/images/cancel.png" 
            EditImageUrl="~/images/Edit.png" ShowEditButton="True" 
            UpdateImageUrl="~/images/update.png" />
        <asp:CommandField ButtonType="Image" DeleteImageUrl="~/images/Delete.png" 
            ShowDeleteButton="True" />
    </Columns>
</asp:GridView>


